﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Practices.EnterpriseLibrary.Validation;
using Microsoft.Practices.EnterpriseLibrary.Validation.Validators;
namespace DTO
{
    public class DUONGCollection : List<DUONG>
    { }
    public class DUONG
    {
        private long MaDuong;

        public long MADUONG
        {
            get { return MaDuong; }
            set { MaDuong = value; }
        }
        private String TenDuong;
        [StringLengthValidator(5,500,MessageTemplate="Tên đường phải có ít nhất 5 ký tự")]
        public String TENDUONG
        {
            get { return TenDuong; }
            set { TenDuong = value; }
        }
        public DUONG() { }

    }
}
